library ieee;
use ieee.std_logic_1164.all;

use work.processor_pkg.all;

package reg_file_pkg is

	constant depth : integer := 32;
	constant data_width : integer := 32;
	constant addr_pin_cnt : integer := 5;	-- log_2(depth)
	--function log_2 (x : positive) return natural;
	
	type addr_pin_array is array (integer range <>) of std_logic_vector(addr_pin_cnt-1 downto 0);
	type data_pin_array is array (integer range <>) of word_t;
	
end reg_file_pkg;

package body reg_file_pkg is

	--function log_2 (x : positive) return natural is
	--begin
	--	if x <= 1 then
	--		return 0;
	--	else
	--		return log_2 (x / 2) + 1;
	--	end if;
	--end function log_2;
	
end package body reg_file_pkg;